package com.example.securitytest.controller;

import com.example.securitytest.bean.Test;
import com.example.securitytest.entity.User;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.validation.Valid;

@RestController
//@Validated
public class TestController {

    @GetMapping("test")
    public Object getUser(@Valid Test test){
        return "214321";
    }
//
//    @GetMapping("test1")
//    public Object TES11(
//            {
//        return "213";
//    }

    @PostMapping("loginnn")
    public Object getLogin(){
        return "as1`2";
    }
//
//    @PostMapping("login")
//    public Object login(){
//        return "wqedsa544";
//    }

}
